<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title>java</title>
    <link rel="stylesheet" href="/static/css/style.css"/>
</head>
<body>

    <div class="n-support">请使用Chrome、Safari等webkit内核的浏览器！</div><div class="n-head">
        <div class="g-doc f-cb">
            <div class="user">
                买家你好,buyer <a href="/logout">[退出]</a>
            </div>
            <ul class="nav">
                <li><a href="/api/buyerindex">首页</a></li>
                <li><a href="/api/toAccount">账务</a></li>
                <li><a href="/api/toSettleAccount">购物车</a></li>
            </ul>
        </div>
    </div>


    <div class="g-doc" id="settleAccount">
        <div class="m-tab m-tab-fw m-tab-simple f-cb" >
            <h2>已添加到购物车的内容</h2>
        </div>
        <table class="m-table m-table-row n-table g-b3">
            <colgroup><col/><col class="num"/><col class="price"/><col/></colgroup>
            <thead>
            <tr><th>标题</th><th>物品数量</th><th>物品价格</th></tr>
            </thead>
            <tbody>
            <#list orders as order>
                <tr>
                    <td><span class="">${order.bookTitle}</span></td>
                    <td><span class="v-num">${order.buyNum}</span></td>
                    <td><span class="v-unit">¥</span><span class="value">${order.buyPrice}</span></td>
                </tr>
            </#list>
            </tbody>
        </table>
        <div id="act-btn">
            <a href="javascript:history.go(-1);">
                <button class="u-btn u-btn-primary" id="back">退出</button>
            </a>
            <a href="/api/confirmBuy" method="post">
                <button class="u-btn u-btn-primary" id="Account" onclick="javascript:return show_confirm()">购买</button>
            </a>
        </div>
    </div>

    <div class="n-foot">
        <p>版权所有：网易云课堂<a href="http://mooc.study.163.com/smartSpec/detail/85002.htm">Java开发工程师(Web方向)</a>微专业团队</p>
    </div>
    <script type="text/javascript" src="/js/global.js"></script>
    <script type="text/javascript" src="/js/settleAccount.js"></script>
    <script type="text/javascript">
        function show_confirm()
        {
            var msg = "请再次确认是否购买？\n\n请确认！";
            if (confirm(msg)==true)
            {
                return true;
            }
            else
            {
                return  false;
            }
        }
    </script>

</body>
</html>